package io.renren.modules.communityService.conver;

import io.renren.modules.communityService.dto.SysUserDTO;
import io.renren.modules.communityService.entity.SysUserEntity;
import io.renren.modules.communityService.vo.SysUserVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author chenweilong
 * @email 1433471850@qq.com
 * @date 2020-02-07 12:36
 */
@Mapper
public interface SysUserConver {

    SysUserConver MAPPER =  Mappers.getMapper(SysUserConver.class);

    SysUserEntity converDTO(SysUserDTO sysUserDTO);

    List<SysUserEntity> converDTO(List<SysUserDTO> sysUserDTOs);

    SysUserVO conver(SysUserEntity sysUserEntities);

    List<SysUserVO> conver(List<SysUserEntity> sysUserEntities);

}
